    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>ndada</title>

    </head>

<h1>HumanPages</h1>

<table border="1">
	<th>id</th>
	<th>name1</th>
	<th>name2</th>
	<th>コンタクト回数</th>
	
<?php 


	foreach($data as $dbData ){
?>
		<tr>
	    <td><?php echo $dbData['Human']['id']; ?></td>
		<td><?php echo $dbData['Human']['id']; ?></td>
		<td><?php echo $dbData['Human']['name1']; ?></td>
		<td><?php echo $dbData['Human']['name2']; ?></td>
		<td><?php echo $dbData['Human']['contactCount']; ?></td>			
		</tr>		
		<?php } ?>		
		}
</table>


<?php 
echo 'dosukoi///';
  //  foreach($actionDataa as $actData ){
  //	echo '\n ntarou   ' . $actData['Action']['id'];
 //	}
?>


<script language="JavaScript">
$(function(){
	//alert('hehe');
	$("tr").click(function(){
	//	alert($("tr").index(this));
	$pid = $(this).children().eq(1).text();
	alert($pid);
		});
})
</script>


<?php echo $form->create("ttt"); ?>
<?php echo $form->input("FIND"); ?>
<?php echo $form->end("送信"); ?>



<?php echo $form->create("ttt"); ?>
<?php echo $form->input("FIND"); ?>
<?php echo $form->end("送信"); ?>

<?php 
echo $form->create('human', array('action' => '', 'type' => 'post'));
echo $form->label('human', 'ｷｰﾜｰﾄﾞを入れて下さい。');
echo $form->text('human.keyword');
echo $form->label('human','２枚目のラベル');
echo $form->text('human.second');
echo $form->end(array('label' => '送信', 'name' => 'submitButton', 'div' => array('class' => 'submitDiv')));

//DBからの削除
echo $form->create('human',array('action' => '','type' => 'post'));
echo $form->label('human','削除キー');
echo $form->text('human.delKey');
echo $form->end(array('label' => '削除'));


//画面表示テスト
//echo $this -> data['human']['keyword'];
//echo $this -> data['human']['second'];
?>


